//
//  JourneyBaseVController.m
//  Travel assistant
//
//  Created by lanou3g on 16/3/2.
//  Copyright © 2016年 旅游助手. All rights reserved.
//

#import "JourneyBaseVController.h"
#import "JourneyTVController.h"
#import "DirectoryTVController.h"


@interface JourneyBaseVController ()

@end

@implementation JourneyBaseVController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.view.backgroundColor = [UIColor redColor];
    // Do any additional setup after loading the view.
    

    DirectoryTVController *directoryViewC  = [[DirectoryTVController alloc] init];
    [self addChildViewController:directoryViewC];
    [self.view insertSubview:directoryViewC.view atIndex:1];
    
    
    UINavigationController *nav = [[UINavigationController alloc]initWithRootViewController:directoryViewC];
    [self addChildViewController:nav];
    UINavigationController *Navc = self.childViewControllers.firstObject;
    [self.view addSubview:Navc.view];
    
    
    
    
    JourneyTVController *journeyTVC = [[JourneyTVController alloc] init];
    UINavigationController *NaVC = [[UINavigationController alloc] initWithRootViewController:journeyTVC];
    [self addChildViewController:NaVC];
    [self.view addSubview:NaVC.view];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
